home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re SOM & Streams < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.3 KB  |  [TEXT/ttxt]

  1. Subject:     Re: SOM & Streams
  2. Sent:        6/28/96 2:22 PM
  3. Received:    6/28/96 2:32 PM
  4. From:        Mark Lanett, mlanett@meer.net
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. You only need acquisition objects for refcounted SOM objects. FW_OSink
  9. isn't refcounted, so you can just use it (you don't need to call Release or
  10. anything).
  11.  
  12. SOM is transparent to call into; it just happens that many of OpenDoc's SOM
  13. objects are refcounted. Refcounted objects must be referred to using
  14. acquisition objects in order to be exception-safe, irregardless of whether
  15. they have a C++ or SOM interface.
  16.  
  17. At 1:59 PM 6/28/96, Scott Daniels wrote:
  18. >I am afraid to even touch SOM objects since I was under the impression
  19. >that you had to get Acquisition objects for them, etc. I am also puzzled
  20. >by the fact that there can only be one wrapper class for the OSink, so
  21. >after creating it, we can only deal with the OSink? Why have a wrapper
  22. >class at all? This all probably sounds pretty stupid for the SOM savvy,
  23. >but to non-SOM-literate like me I am confused, especially since SOM was
  24. >advertised as being transparent to C++ as far as using it, but it appears
  25. >to be really nasty. Can anyone enlighten me?
  26.  
  27.  
  28. --
  29. Mark Lanett, OpenDoc Framework, Apple Computer
  30.  
  31.